import 'package:flutter_taotaoshipin/generated/json/base/json_convert_content.dart';
import 'package:flutter_taotaoshipin/model/userinfo_complete_task_entity.dart';

UserinfoCompleteTaskEntity $UserinfoCompleteTaskEntityFromJson(
    Map<String, dynamic> json) {
  final UserinfoCompleteTaskEntity userinfoCompleteTaskEntity = UserinfoCompleteTaskEntity();
  final bool? state = jsonConvert.convert<bool>(json['state']);
  if (state != null) {
    userinfoCompleteTaskEntity.state = state;
  }
  return userinfoCompleteTaskEntity;
}

Map<String, dynamic> $UserinfoCompleteTaskEntityToJson(
    UserinfoCompleteTaskEntity entity) {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['state'] = entity.state;
  return data;
}

extension UserinfoCompleteTaskEntityExtension on UserinfoCompleteTaskEntity {
  UserinfoCompleteTaskEntity copyWith({
    bool? state,
  }) {
    return UserinfoCompleteTaskEntity()
      ..state = state ?? this.state;
  }
}